import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';

@Injectable()
export class WebcastDetailProvider {

  constructor(public http: HttpClient) {}

  getCastDetailByCastId(castId: string) {
      return this.http.get('/livestreaming/v1/detail/'+castId+'?not-loading=0');
  }

  getShareLink(roomId:number){
      return this.http.get(`/livestreaming/v1/sharelink/${roomId}`,{responseType:'text'});
  }

}
